<!DOCTYPE html>

<html>



<head>

    <meta charset="utf-8"/>

    <title>订单管理</title>

    <link rel="stylesheet" href="__PUBLIC__/Leader/css/bootstrap.css">

    <link rel="stylesheet" type="text/css" href="__PUBLIC__/Leader/css/index.css"/>

    <link rel="stylesheet" type="text/css" href="__PUBLIC__/Leader/css/bootstrap-datetimepicker.css"/>    

    <style type="text/css">

        .order-list a {

            position: relative;

        }



        .order-list span {

            float: right;

            margin-right: 20px;

        }



        .trhead td {

            background: #efefef;

            text-align: center

        }



        .trbody td {

            text-align: center;

            vertical-align: top;

            border-left: 1px solid #f2f2f2;

            overflow: hidden;

            font-size: 12px;

        }



        .trorder {

            background: #f8f8f8;

            border: 1px solid #f2f2f2;

            text-align: left;

        }



        .ops {

            border-right: 1px solid #f2f2f2;

            text-align: center;

        }



        .pagination ul {

            display: inline-block;

            margin-left: 0;

            margin-bottom: 0;

            -webkit-border-radius: 3px;

            -moz-border-radius: 3px;

            border-radius: 3px;

            font-size:0;

        }



        .pagination ul > li {

            display: inline-block;

            font-size:14px;

            border:1px solid #ddd;

        }

        .pagination ul > *:not(:first-child){

            margin-left:-1px;

        }

        .pagination ul > span{

            border:1px solid #ddd;

        }

        .pagination ul > li > a, .pagination ul > span {

            /*float: left;*/

            display:inline-block;

            padding: 0 14px;

            line-height: 38px;

            text-decoration: none;

            background-color: #ffffff;

            font-size:14px;

        }

        .pagination ul > li:last-child{

            margin-left:15px;

            border:none;

        }

        .pagination ul > li:last-child #pages{

            margin:0 6px;

        }

        thead tr th {

            text-align: center;

        }

    </style>

</head>

<body>

<include file="Index/head"/>

<div class="wrapper main-wrapper wrapper-content ">

    <include file="Order/left"/>

    <!--主要内容-->

    <div class="page-content" style="display: block;">

        <div class="page-heading" style="position:relative;">

            <h2>提现列表</h2>

        </div>





        <div class="panel panel-default" style="margin-top: 20px;">

            <div class="panel-body" style="text-align: center;">

                <table class="table table-responsive">

                    <thead>

                    <tr style="background:#f9f9f9;">

                        <th style="text-align: center;">#</th>

                        <th style="text-align: center;">司机姓名</th>

                        <th style="text-align: center;">到账手机号</th>

                        <th style="text-align: center;">提现金额</th>

                        <th style="text-align: center;">提现卡号</th>

                        <th style="text-align: center;">提现时间</th>

                        <th style="text-align: center;">扣款比例</th>

                        <th style="text-align: center;">提现状态</th>

                        <th style="text-align: center;">操作</th>

                    </tr>

                    </thead>

                    <tbody>

                    <volist name="withdraw" id="vo">

                        <tr>

                            <td>{$vo.id}</td>
                            <td>{$vo.uid|uidname}</td>

                            <td>{$vo.name}</td>

                            <td>{$vo.money}</td>

                            <td>{$vo.card}</td>

                            <td>{$vo.create_time|date="Y-m-d H:i:s",###}</td>
                            
                            <td>{$vo.ratio}%</td>

                            <td>

                                <if condition="$vo['status'] eq 1">待审核

                                    <elseif condition="$vo['status'] eq 2"/>审核通过

                                    <elseif condition="$vo['status'] eq 3"/>审核不通过

                                    <else/>审核状态错误

                                </if>

                            </td>

                            <td>
                            
                            
                            

                                <if condition="$vo['status'] eq 1">
                                    <a href="{:U('Order/allOrder',array('id'=>$vo['id']))}">
                                        <i class="glyphicon glyphicon-eye-open"></i></a>
                                    <a href="javascript:void(0);" id="checkflag" class="checkflag" data-url="{:U('Order/checkflag',array('id'=>$vo['id']))}">审核</a>

                                    <elseif condition="$vo['status'] eq 2"/>
                                    <a href="{:U('Order/allOrder',array('id'=>$vo['id']))}">
                                        <i class="glyphicon glyphicon-eye-open"></i></a>
                                    审核已经通过

                                    <elseif condition="$vo['status'] eq 3"/>
                                    审核未通过
                                    <else/>

                                </if>

                                

                            </td>

                        </tr>

                    </volist>

                    </tbody>

                </table>

                {$page}

            </div>

        </div>

    </div>

</div>

<script src="__PUBLIC__/Leader/js/jquery.js" type="text/javascript" charset="utf-8"></script>

<script src="__PUBLIC__/layer/layer.js" type="text/javascript" charset="utf-8"></script>

<script type="text/javascript">

    //司机的详细信息

    $(".checkflag").on("click", function () {

        var data_url = $(this).attr("data-url");
       
        layer.open({

            type: 2,

            title: '司机提现审核',

            shadeClose: true,

            shade: 0.8,

            area: ['90%', '80%'],

            content: data_url, //iframe的url

            end: function () {

				location.reload();

			}

        });

    });

</script>

</body>

</html>